﻿<%@ Page Title="生产企业信息" Language="C#" MasterPageFile="~/Master/MasterPage_New.master"
    AutoEventWireup="true" CodeBehind="CompanyOfMonthSC.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportCompany.CompanyOfMonthSC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    企业名称：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtcompanyname" MaxLength="25" runat="server"></asp:TextBox>
                </td>
                <td align="right">
                    &nbsp;
                </td>
                <td align="left">
                    &nbsp;
                </td>
                <td>
                    排序字段：
                </td>
                <td align="right">
                    &nbsp;</td>
                <td align="left">
                    <asp:DropDownList ID="droSortField" runat="server" Height="20px" Width="146px">
                        <asp:ListItem Value="PuchaseCount asc">生产企业供货采购数量 升序</asp:ListItem>
                        <asp:ListItem Value="DistributeCount asc">生产企业供货配送总数量 升序</asp:ListItem>
                         <asp:ListItem Value="PuchaseCount desc">生产企业供货采购数量 降序</asp:ListItem>
                        <asp:ListItem Value="DistributeCount desc">生产企业供货配送总数量 降序</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwSortInfo" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！" OnRowCreated="gvwSortInfo_RowCreated" OnRowDataBound="gvwSortInfo_RowDataBound"
        OnRowCommand="gvwSortInfo_RowCommand">
        <Columns>
            <asp:BoundField HeaderText="生产企业名称" DataField="Sellname" />
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("Source"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="生产企业供货采购数量" DataField="PuchaseCount" />
            <asp:BoundField HeaderText="生产企业供货配送总数量" DataField="DistributeCount" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="linkCompanyGoodsList" runat="server" CommandName="CompanyGoodsList"
                        CommandArgument='<%#Eval("Sellname") %>' Text="详情"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
